/*    */ package com.cr.business.service.impl;
/*    */ 
/*    */ import com.cr.business.domain.CrLawyerInfo;
/*    */ import com.cr.business.mapper.CrLawyerInfoMapper;
/*    */ import com.cr.business.service.ICrLawyerInfoService;
/*    */ import com.cr.common.core.text.Convert;
/*    */ import com.cr.common.utils.MyDateUtils;
/*    */ import java.util.List;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Service;
/*    */ 
/*    */ @Service
/*    */ public class CrLawyerInfoServiceImpl implements ICrLawyerInfoService {
/*    */   @Autowired
/*    */   private CrLawyerInfoMapper crLawyerInfoMapper;
/*    */   
/*    */   public CrLawyerInfo selectCrLawyerInfoByLawyerId(Long lawyerId) {
/* 33 */     return this.crLawyerInfoMapper.selectCrLawyerInfoByLawyerId(lawyerId);
/*    */   }
/*    */   
/*    */   public List<CrLawyerInfo> selectCrLawyerInfoList(CrLawyerInfo crLawyerInfo) {
/* 45 */     return this.crLawyerInfoMapper.selectCrLawyerInfoList(crLawyerInfo);
/*    */   }
/*    */   
/*    */   public int insertCrLawyerInfo(CrLawyerInfo crLawyerInfo) {
/* 57 */     crLawyerInfo.setCreateTime(MyDateUtils.getNowDate());
/* 58 */     return this.crLawyerInfoMapper.insertCrLawyerInfo(crLawyerInfo);
/*    */   }
/*    */   
/*    */   public int updateCrLawyerInfo(CrLawyerInfo crLawyerInfo) {
/* 70 */     crLawyerInfo.setUpdateTime(MyDateUtils.getNowDate());
/* 71 */     return this.crLawyerInfoMapper.updateCrLawyerInfo(crLawyerInfo);
/*    */   }
/*    */   
/*    */   public int deleteCrLawyerInfoByLawyerIds(String lawyerIds) {
/* 83 */     return this.crLawyerInfoMapper.deleteCrLawyerInfoByLawyerIds(Convert.toStrArray(lawyerIds));
/*    */   }
/*    */   
/*    */   public int deleteCrLawyerInfoByLawyerId(Long lawyerId) {
/* 95 */     return this.crLawyerInfoMapper.deleteCrLawyerInfoByLawyerId(lawyerId);
/*    */   }
/*    */
/**
 * 查询律师信息
 *
 * @param userId
 * @return 律师信息
 */
@Override
public CrLawyerInfo selectCrLawyerInfoByUserId(Long userId) {
    return crLawyerInfoMapper.selectCrLawyerInfoByUserId(userId);
} }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-business-4.7.0.jar!\com\cr\business\service\impl\CrLawyerInfoServiceImpl.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */